package com.shnu.work.entity;

import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@ToString
@EqualsAndHashCode
@SuppressWarnings("all")
@EntityListeners(AuditingEntityListener.class)
@Table(name = "administration_information", schema = "final_work", catalog = "")
public class AdministrationInformationEntity implements Serializable {
    private static final long serialVersionUID = 2871005463538548443L;
    private long id;
    private String administrationName;
    private String administrationPassword;
    private String administrationAccount;
    @CreatedDate
    private Date createTime;
    @LastModifiedDate
    private Date updateTime;
    private Integer isDeleted;

    @Id
    @Column(name = "id", nullable = false)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "administration_name", nullable = true, length = 255)
    public String getAdministrationName() {
        return administrationName;
    }

    public void setAdministrationName(String administrationName) {
        this.administrationName = administrationName;
    }

    @Basic
    @Column(name = "administration_password", nullable = true, length = 255)
    public String getAdministrationPassword() {
        return administrationPassword;
    }

    public void setAdministrationPassword(String administrationPassword) {
        this.administrationPassword = administrationPassword;
    }

    @Basic
    @Column(name = "administration_account", nullable = true, length = 255)
    public String getAdministrationAccount() {
        return administrationAccount;
    }

    public void setAdministrationAccount(String administrationAccount) {
        this.administrationAccount = administrationAccount;
    }

    @Basic
    @Column(name = "create_time", nullable = true)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_time", nullable = true)
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "is_deleted", nullable = true)
    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
}
